#include "cpu/exec/template-start.h"

#define instr ret

make_helper(concat(ret_n_,SUFFIX)){
        cpu.eip = MEM_R(reg_l(R_SP), R_SS)-1;                        // 2表示SS
    if(DATA_BYTE == 2) cpu.eip &= 0xffff;
    reg_l(R_SP) += DATA_BYTE;
    // cpu.eip=swaddr_read(cpu.esp,4)-1;
    // MEM_W(cpu.esp,0);
    // cpu.esp += 4;
    print_asm("ret");
    return 1;
} 
#include "cpu/exec/template-end.h"